package com.gupao.gupaoeduvippattern.javaBase.day02.test1;

import org.junit.jupiter.api.Test;

public class Son extends Father {

    public static void main(String[] args) {
        Son son = new Son();
        son.run("张三");
    }

    @Test
    public void test1(){
        Son son = new Son();
        son.run("张三");
    }

    public Son(){
        System.out.println("son构造方法被调用！");
    }

    @Override
    public void run(String name) {
        System.out.println(name + "son中的run方法执行！");
    }


}
